Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. ble send data
    Log in to post

    • A

      FiPy-Android Bluetooth Communication
      Discussion • fipy ble bluetooth ble send data ble connect • • Alon  

      1
      0
      Votes
      1
      Posts
      653
      Views

      No one has replied

    • S

      Setting value? Sending bytes?
      LoPy • lopy ble ble send data ble lopy ble connect • • stefan85e  

      1
      0
      Votes
      1
      Posts
      465
      Views

      No one has replied

    • C

      How to send data to characteristic over BLE
      LoPy • lopy lopy ble ble send data ble lopy • • CodeManiac64  

      18
      1
      Votes
      18
      Posts
      3815
      Views

      jmarcelino

      @codemaniac64 Umm I'm not sure, do you have any debug visibility on your PSoC code? Seems like it's rejecting something. Can you see if the BLE connection is still up when you try the .write(b'x0f')? It really helps to have a BLE sniffer like this https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer
    • iber

      LoPy Bluetooth characteristic buffer size
      LoPy • lopy ble bluetooth ble send data mobile • • iber  

      2
      0
      Votes
      2
      Posts
      988
      Views

      jmarcelino

      @iber That's normal because it's not really a buffer, Bluetooth LE characteristics are usually restricted to 20 bytes by the protocol - it's what fits in the BLE packet - so unless you negotiate a larger MTU (larger packets than standard) between peers or use Long attributes you are restricted to that amount. Neither of those extended techniques are currently supported.
    • J

      How to notify other BLE devices from Wipy
      WiPy 2&3 • wipy 2.0 other ble send data gattcconnection • • jmahesh  

      2
      0
      Votes
      2
      Posts
      921
      Views

      jmarcelino

      @jmahesh You are connecting to GATT Server as client, so what you can do is request the server send you notifications. You can't send notifications as a client. Bluetooth.PROP_NOTIFY means you can request notifications on that characteristic. I'm guessing that characteristic is not writable (read only) hence you get that error? If what you want is to be notified by the Server (e.g. when the value changes) use the char.callback(trigger=Bluetooth.CHAR_NOTIFY_EVENT, handler=YourHandlerFunct, arg=YourOptionalArgument)
    • F

      detection of notifications enabling on BLE connections with Lopy
      LoPy • ble send data ble lopy • • fbt  

      1
      0
      Votes
      1
      Posts
      692
      Views

      No one has replied

    • D

      How to use "characteristic.write(value)"
      LoPy • ble send data • • DongYin  

      5
      0
      Votes
      5
      Posts
      4687
      Views

      D

      @jmarcelino Thank you,it works now. The lightBlue get the reply in reads.
    • 1 / 1